import java.util.Scanner;
public class calculatorCounter {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int one = input.nextInt();
        System.out.println("请选择运算符号1：+,2:-,3*,4/,5%");
        int demo = input.nextInt();
        System.out.println("请输入第二数");
        int two = input.nextInt();
        if (demo == 1) {
            System.out.printf("%d+%d=%d", one, two, one + two);
        } else if (demo == 2) {
            System.out.printf("%d-%d=%d", one, two, one - two);
        } else if (demo == 3) {
            System.out.printf("%d*%d=%d", one, two, one * two);
        } else if (demo == 4) {
            System.out.printf("%d/%d=%d", one, two, one / two);
        } else if (demo == 5) {
            System.out.printf("%d%%%d=%d", one, two, one % two);
        } else {
            System.out.println("请选择正确的运算符");
        }

    }
}
